<?php

namespace App\Dao;
use App\Models\Topics;
use App\Models\Donates;
use EasyWeChat\Factory;
/**
 * 主题活动
 *
 * @author Yh 20201201
 */
class TopicDao extends Topics
{
    public static function finish_check(){
        $unfinish_Topics =  Topics::where('status',2)->get(['id','end_date']);
        $unfinish_Topics->each(function ($order) {
            self::unpay_cancel($order);
        });
    }
}
